package com.explore.demo.service;

import com.explore.demo.common.ServerResponse;
import com.explore.demo.pojo.CompanyCategory;
import com.explore.demo.pojo.RecruitCategory;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author gaolainan
 * @since 2021-05-04
 */
public interface RecruitCategoryService extends IService<RecruitCategory> {
    /**
     * 创建一个 招聘信息的关系类别
     * @param recruitCategory
     * @return
     */
    public ServerResponse addRecruitCategory(RecruitCategory recruitCategory);

    /**
     * 通过id  删除对应信息
     * @param id
     * @return
     */
    public ServerResponse deleteById(Integer id);

    /**
     * 查询全部的类别信息
     * @return
     */
    public ServerResponse queryAll();

    /**
     * 根据招聘信息的id 查询对应的类别
     * @param recruitId
     * @return
     */
    public ServerResponse queryAllByRecruitId(Integer recruitId);

    /**
     * 更新职位类别关系
     * @param recruitCategory
     * @return
     */
    public ServerResponse updateRecruitCategory(RecruitCategory recruitCategory);
}
